package ch6.ex16;

import static ch6.print.Print.*;

class Amphibian{
	public void moveInWater(){
		println("Moving in water.");
	}
	public void moveOnLand(){
		println("Moving on land.");
	}
}

class Frog extends Amphibian{}

public class FrogTest {
	public static void main(String... args){
		Amphibian a = new Frog();
		a.moveInWater();
		a.moveOnLand();
	}
}
